<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
</head>
<body>


    <script>
        // 关于设备屏幕信息
        // console.log(screen);

        // 屏幕的尺寸 (除了任务栏)
        var w = screen.availWidth;
        var h = screen.availHeight;
        // 打印数据
        // console.log({w:w,h:h});
        console.log({w,h});

        // 屏幕的尺寸 (包含任务栏)
        var w2 = screen.width;
        var h2 = screen.height;
         // 打印数据
        console.log({w2,h2});


    </script>
</body>
</html>